{% extends 'base.html' %}

{% block content %}
<div style="margin:auto;width:50%;">

{% if job %}
    <div class="position_name">
        <h2>岗位名称:{{ job.job_name }} </h2>

        城市:
        {{ job.city_name }} <p></p>
    </div>
    <hr>
    <div class="position_responsibility" style="width:600px">
        <h3>岗位职责:</h3>
        <pre style="font-size:16px">{{ job.job_responsibility }}</pre>

    </div><br>

    <hr>
    <div class="position_requirement" style="width: 600px">
        <h3>任职要求：</h3>
        <pre style="font-size:16px">{{ job.job_requirement }}</pre>
    </div>

    <br>

    <div class="apply_position">

        <button type="submit" class="btn btn-primary" value="申请" onclick="location.href='/resume/add/?apply_position={{job.job_name}}&city={{job.city_name}}'"/>
          申请
        </button>

{#        <input type="button" style="width:120px;background-color:lightblue;" value="申请" onclick="location.href='/resume/add/?apply_position={{job.job_name}}&city={{job.city_name}}'"/>#}
    </div>
{% else %}
    <p>职位不存在</p>
{% endif %}

{% endblock %}
</div>